package com.dhruvtaara.beta.toolset;

import java.util.logging.Level;
import java.util.logging.Logger;

public class AppLog {
	private static Logger logger = null;

	/**
	 * 
	 * @param className
	 */
	public AppLog(String className) {
		logger = Logger.getLogger(className);
	}

	/**
	 * 
	 * @param message
	 */
	public void Info(String message) {
		if (logger.isLoggable(Level.INFO)) {
			logger.info(message);
		}
	}

	/**
	 * 
	 * @param message
	 */
	public void Warning(String message) {
		if (logger.isLoggable(Level.WARNING)) {
			logger.warning(message);
		}
	}

	/**
	 * 
	 * @param message
	 */
	public void Error(String message) {
		if (logger.isLoggable(Level.SEVERE)) {
			logger.severe(message);
		}
	}

}
